package com.slz3.business.module.goodsManagement.gooBaseGoodsAttributeValue.steward;

import com.slz3.business.frame.response.RR;
import com.slz3.business.frame.response.ResInfo;
import com.slz3.business.module.goodsManagement.gooBaseGoodsAttributeValue.domain.GooBaseGoodsAttributeValue;
import com.slz3.business.module.goodsManagement.gooBaseGoodsAttributeValue.domain.GooBaseGoodsAttributeValueCondition;
import org.springframework.stereotype.Component;
import org.springframework.web.reactive.function.server.ServerRequest;
import org.springframework.web.reactive.function.server.ServerResponse;
import reactor.core.publisher.Mono;

@Component
public class GooBaseGoodsAttributeValueResAtomic {

    public Mono<ServerResponse> add_$GooBaseGoodsAttributeValueUpdateLock(ServerRequest req, GooBaseGoodsAttributeValue gooBaseGoodsAttributeValue) {
        return GooBaseGoodsAttributeValueResSafeValid.add(req, gooBaseGoodsAttributeValue) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                GooBaseGoodsAttributeValueResExecutor.add(req, gooBaseGoodsAttributeValue);
    }

    public Mono<ServerResponse> delete_$GooBaseGoodsAttributeValueUpdateLock(ServerRequest req, GooBaseGoodsAttributeValueCondition gooBaseGoodsAttributeValueCondition) {
        return GooBaseGoodsAttributeValueResSafeValid.delete(req, gooBaseGoodsAttributeValueCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                GooBaseGoodsAttributeValueResExecutor.delete(req);
    }

    public Mono<ServerResponse> modify_$GooBaseGoodsAttributeValueUpdateLock(ServerRequest req, GooBaseGoodsAttributeValue gooBaseGoodsAttributeValue) {
        return GooBaseGoodsAttributeValueResSafeValid.modify(req, gooBaseGoodsAttributeValue) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                GooBaseGoodsAttributeValueResExecutor.modify(req, gooBaseGoodsAttributeValue);
    }

    public Mono<ServerResponse> info_$GooBaseGoodsAttributeValueUpdateLock(ServerRequest req) {
        return GooBaseGoodsAttributeValueResSafeValid.info(req) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                GooBaseGoodsAttributeValueResExecutor.info(req);
    }

    public Mono<ServerResponse> auditSubmit_$GooBaseGoodsAttributeValueUpdateLock(ServerRequest req, GooBaseGoodsAttributeValueCondition gooBaseGoodsAttributeValueCondition) {
        return GooBaseGoodsAttributeValueResSafeValid.auditSubmit(req, gooBaseGoodsAttributeValueCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                GooBaseGoodsAttributeValueResExecutor.auditSubmit(req);
    }

    public Mono<ServerResponse> audit_$GooBaseGoodsAttributeValueUpdateLock(ServerRequest req, GooBaseGoodsAttributeValueCondition gooBaseGoodsAttributeValueCondition) {
        return GooBaseGoodsAttributeValueResSafeValid.audit(req, gooBaseGoodsAttributeValueCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                GooBaseGoodsAttributeValueResExecutor.audit(req);
    }

    public Mono<ServerResponse> auditReject_$GooBaseGoodsAttributeValueUpdateLock(ServerRequest req, GooBaseGoodsAttributeValueCondition gooBaseGoodsAttributeValueCondition) {
        return GooBaseGoodsAttributeValueResSafeValid.auditReject(req, gooBaseGoodsAttributeValueCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                GooBaseGoodsAttributeValueResExecutor.auditReject(req);
    }


    public Mono<ServerResponse> usingEnable_$GooBaseGoodsAttributeValueUpdateLock(ServerRequest req, GooBaseGoodsAttributeValueCondition gooBaseGoodsAttributeValueCondition) {
        return GooBaseGoodsAttributeValueResSafeValid.usingEnable(req, gooBaseGoodsAttributeValueCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                GooBaseGoodsAttributeValueResExecutor.usingEnable(req);
    }

    public Mono<ServerResponse> usingDisable_$GooBaseGoodsAttributeValueUpdateLock(ServerRequest req, GooBaseGoodsAttributeValueCondition gooBaseGoodsAttributeValueCondition) {
        return GooBaseGoodsAttributeValueResSafeValid.usingDisable(req, gooBaseGoodsAttributeValueCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                GooBaseGoodsAttributeValueResExecutor.usingDisable(req);
    }
}
